package cn.shit;

public class Q1 {

    /*
    输出字符串中字母, 数字, 其他字符个数
     */
    public static void TJ (String s) {
        char[] chars = s.toCharArray();
        int zM = 0;  // zi mu
        int sZ = 0;  // shu zi
        int other = 0;
        for (char c : chars) {
            if (Character.isAlphabetic(c)) {
                zM++;
            } else if (Character.isDigit(c)) {
                sZ++;
            } else {
                other++;
            }
        }
        System.out.println("zu mu:" + zM + " sZ: " + sZ + " other: " + other);
    }

    public static void main(String[] args) {
//        TJ("abcderg123??");
    }
}
